// import React from 'react'

// const React = require("react")
// const ReactDom = require('react-dom')
import React from 'react'
import ReactDom from 'react-dom'
//创建react元素(虚拟dom)
//React.createElement(标签名，属性，子元素)
const oli1 = React.createElement("li ",{},[111])  
const oli2 = React.createElement("li",{},[222])  
const oUl = React.createElement("ul",{},[oli1,oli2])  
/* const aDiv =  React.createElement('input',{ type:"text"} ,['']) */
//把react元素渲染到页面
//ReactDom.render(react元素，挂载点，callback)
ReactDom.render(oUl,document.getElementById("root"))
/* ReactDom.render(aDiv,document.getElementById("root"),()=>{
    console.log("渲染成功");
}) */